package com.it.cn.p1_Demo;

public class Student {
    private String name;//名字
    private String sex;//性别
    private Integer age;//年龄


    private Student() {
    }

    public void sleep() {
        System.out.println(name + "在睡觉");
    }

    public void eat() {
        System.out.println(name + "在吃饭");
    }

    public void showInfo() {
        System.out.println("大家好,我叫" + name + "性别" + sex + "年龄为" + age);
    }

}
